<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>

	<script type="text/javascript">

		function add() {
			if (arguments.length == 2)
			{
				return arguments[0] + arguments[1];
			}
			else if (arguments.length == 3)
			{
				return arguments[0] + arguments[1] + arguments[2];
			}
			else if (arguments.length == 4)
			{
				return arguments[0] + arguments[1] + arguments[2] + arguments[3];
			}
			else {
				return 0;
			}
		}

		document.write(add(1,2));
		document.write("<br/>");
		document.write(add(1,2,3));
		document.write("<br/>");
		document.write(add(1,2,3,4));
		document.write("<hr/>");

	</script>

</body>
</html>
